#
# this module look for blitz (http://www.boost.org) support
# it will define the following values
#
# MTL_INCLUDE_DIR = where boost/config.hpp can be found
#
# May want to define this but seldom required
# MTL_LIBRARY = where boost library can be found (reserved)
#
IF(EXISTS ${PROJECT_CMAKE}/MTLConfig.cmake)
  INCLUDE(${PROJECT_CMAKE}/MTLConfig.cmake)
ENDIF(EXISTS ${PROJECT_CMAKE}/MTLConfig.cmake)

IF(MTL_INCLUDE_DIRS)
  FIND_PATH(MTL_INCLUDE_DIR mtl/mtl.h  ${MTL_INCLUDE_DIRS})
ELSE(MTL_INCLUDE_DIRS)
  FIND_PATH(MTL_INCLUDE_DIR mtl/mtl.h
    /usr/local/include
  )
ENDIF(MTL_INCLUDE_DIRS)

IF(MTL_INCLUDE_DIR)
  SET(FOUND_MTL 1 CACHE BOOL "Found mtl library")
ELSE(MTL_INCLUDE_DIR)
  SET(FOUND_MTL 0 CACHE BOOL "Could not find mtl library")
ENDIF(MTL_INCLUDE_DIR)

MARK_AS_ADVANCED(
   MTL_INCLUDE_DIR
   FOUND_MTL
)
